MSD: Add sidebar top padding when no logo#109880
Conversation
Jetpack Cloud Live (direct link)
Automattic for Agencies Live (direct link)
Dashboard Live (dotcom) (direct link)
|
|
This PR modifies the release build for the following Calypso Apps: For info about this notification, see here: PCYsg-OT6-p2
To test WordPress.com changes, run |
| @@ -20,6 +20,10 @@ | |||
| overflow-y: auto; | |||
| } | |||
|
|
|||
| .dashboard-responsive-sidebar__sidebar:not( :has( > .dashboard-responsive-sidebar__logo ) ) { | |||
| padding-block-start: $grid-unit-30; | |||
There was a problem hiding this comment.
I took this padding number from the existing flex gap value used between the horizontal rule and the nav items.
But it does mean that it's not even: the top and left/right paddings are different.
Not blocking I don't think, but do you have an opinion about how much padding to use between the omnibar and the first nav items when there's no logo @lucasmendes-design?
|
Code is fine. Looks like you ran into the intermittent build problem on calypso.live. Rebasing should fix. |
CIAB passes Logo: null; with dashboard/omnibar on, the menu sat flush under the omnibar. Use :has() to apply 24px top padding when the logo element isn't rendered.
671a15f to
62df34c
Compare
fushar
left a comment
There was a problem hiding this comment.
I see. I think it's fine to merge this to avoid CIAB folks from seeing broken layout 🙈
Fixes DOTMSD-1206
Proposed Changes
padding-block-start: 24pxto.dashboard-responsive-sidebar__sidebarwhen it has no__logochild, via:not(:has(...)).Why are these changes being made?
CIAB (
my.woo.ai) boots the dashboard w/Logo: null. Withdashboard/omnibaron, the dashboard's own<Header>is also skipped, so the first sidebar menu item rendered flush under the external omnibar — no breathing room. Dotcom is unaffected (always has a Logo).CIAB may or may not eventually have a logo here, but while MSD supports it we should have some sort of way to handle having no logo.
Testing Instructions
dashboard/omnibarinconfig/dashboard-development.json.Pre-merge Checklist